home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / daemons / ipServer / RCS / udp.h,v < prev   
Encoding:
Text File  |  1990-01-26  |  3.3 KB  |  159 lines

  1. head     1.5;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.5
  10. date     89.08.15.19.55.55;  author rab;  state Exp;
  11. branches ;
  12. next     1.4;
  13.  
  14. 1.4
  15. date     89.03.23.09.07.57;  author brent;  state Exp;
  16. branches ;
  17. next     1.3;
  18.  
  19. 1.3
  20. date     89.02.21.10.05.48;  author brent;  state Exp;
  21. branches ;
  22. next     1.2;
  23.  
  24. 1.2
  25. date     88.08.16.11.22.17;  author mendel;  state Exp;
  26. branches ;
  27. next     1.1;
  28.  
  29. 1.1
  30. date     88.04.27.09.02.13;  author brent;  state Exp;
  31. branches ;
  32. next     ;
  33.  
  34.  
  35. desc
  36. @UDP Protocol defs
  37. @
  38.  
  39.  
  40. 1.5
  41. log
  42. @Commented #endif labels.
  43. @
  44. text
  45. @/*
  46.  * udp.h --
  47.  *
  48.  *    Declarations of external UDP-related routines.
  49.  *
  50.  * Copyright 1987 Regents of the University of California
  51.  * All rights reserved.
  52.  * Permission to use, copy, modify, and distribute this
  53.  * software and its documentation for any purpose and without
  54.  * fee is hereby granted, provided that the above copyright
  55.  * notice appear in all copies.  The University of California
  56.  * makes no representations about the suitability of this
  57.  * software for any purpose.  It is provided "as is" without
  58.  * express or implied warranty.
  59.  *
  60.  *
  61.  * $Header: /sprite/src/daemons/ipServer/RCS/udp.h,v 1.4 89/03/23 09:07:57 brent Exp Locker: rab $ SPRITE (Berkeley)
  62.  */
  63.  
  64. #ifndef _IPS_UDP
  65. #define _IPS_UDP
  66.  
  67. #include "sprite.h"
  68.  
  69. /*
  70.  * UDP_MAX_DATAGRAM_SIZE defines how big a datagram can be sent via UDP.
  71.  * It has to be at least a bit over 8K to allow NFS to send 8K of data
  72.  * plus some header information.
  73.  * UDP_REQUEST_BUF_SIZE defines the size of the pseudo-device request buffer.
  74.  * It is made large enough to hold the datagram, plus pseudo-device
  75.  * header, plus a UDP/IP header.  This way we can assemble (and fragment)
  76.  * datagrams as they sit in the pseudo-device request buffer.
  77.  */
  78. #define UDP_MAX_DATAGRAM_SIZE    9000
  79. #define UDP_REQUEST_BUF_SIZE    (UDP_MAX_DATAGRAM_SIZE)
  80.  
  81. /*
  82.  * UDP_WRITE_BEHIND - if this is TRUE then asynchronous writes are allowed
  83.  * to the UDP request buffer.
  84.  */
  85. #define UDP_WRITE_BEHIND    TRUE
  86.  
  87. extern void        UDP_Init();
  88. extern void        UDP_RequestHandler();
  89. extern ReturnStatus    UDP_SocketOpen();
  90. extern ReturnStatus    UDP_SocketClose();
  91. extern ReturnStatus    UDP_SocketRead();
  92. extern ReturnStatus    UDP_SocketWrite();
  93. extern int        UDP_SocketSelect();
  94. extern ReturnStatus    UDP_SocketBind();
  95. extern ReturnStatus    UDP_SocketConnect();
  96. extern ReturnStatus    UDP_SocketShutdown();
  97. extern void        UDP_SocketInput();
  98.  
  99. #endif /* _IPS_UDP */
  100. @
  101.  
  102.  
  103. 1.4
  104. log
  105. @Eliminated sizeof(Pdev_Request) from buffer sizes.  That extra
  106. amount is handled in main.c so these are not so knowledgable
  107. about the pseudo-device interface.
  108. @
  109. text
  110. @d17 1
  111. a17 1
  112.  * $Header: /sprite/src/daemons/ipServer/RCS/udp.h,v 1.3 89/02/21 10:05:48 brent Exp Locker: brent $ SPRITE (Berkeley)
  113. d55 1
  114. a55 1
  115. #endif _IPS_UDP
  116. @
  117.  
  118.  
  119. 1.3
  120. log
  121. @Added constants used for the pseudo-device request buffer
  122. @
  123. text
  124. @d17 1
  125. a17 1
  126.  * $Header: /sprite/src/daemons/ipServer/RCS/udp.h,v 1.2 88/08/16 11:22:17 mendel Exp Locker: brent $ SPRITE (Berkeley)
  127. d35 1
  128. a35 2
  129. #define UDP_REQUEST_BUF_SIZE    (UDP_MAX_DATAGRAM_SIZE + sizeof(Pdev_Request) \
  130.                 + IPS_ROOM_FOR_HEADERS)
  131. d41 1
  132. a41 1
  133. #define UDP_WRITE_BEHIND    FALSE
  134. @
  135.  
  136.  
  137. 1.2
  138. log
  139. @Converted to new lib.a.
  140. @
  141. text
  142. @d17 1
  143. a17 1
  144.  * $Header: udp.h,v 1.1 88/04/27 09:02:13 brent Exp $ SPRITE (Berkeley)
  145. d25 19
  146. d45 1
  147. @
  148.  
  149.  
  150. 1.1
  151. log
  152. @Initial revision
  153. @
  154. text
  155. @d17 1
  156. a17 1
  157.  * $Header: udp.h,v 6.0 87/09/08 15:58:22 andrew Stable $ SPRITE (Berkeley)
  158. @
  159.